﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Torch_Dtos;

namespace Torch_IServices
{
    /// <summary>
    /// 权限
    /// </summary>
    public interface IRolesService
    {
        Task<int> AddRolesAsync(string title);
        Task<int> EditRolesAsync(int id,string title);
        Task<int> DeleteRolesAsync(int id);
        Task<List<RolesDto>> QueryAllRolesAsync();
        Task<List<RolesDto>> QueryByTitleRolesAsync(string title);
        Task<RolesDto> QueryByIdRolesAsync(int id);
        Task<string> QueryRoleTitleAsync(int id);
    }
}
